package com.sinosoft.tcmneim.service.impl;

import com.sinosoft.tcmneim.dao.TblDisecorolBedsetupDao;
import com.sinosoft.tcmneim.dataObject.TblDisecorolBedsetup;
import com.sinosoft.tcmneim.service.TblDisecorolBedsetupService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TblDisecorolBedsetupServiceImpl implements TblDisecorolBedsetupService {
    @Resource
    private TblDisecorolBedsetupDao tblDisecorolBedsetupDao;


    @Override
    public List<TblDisecorolBedsetup> list() {
        return tblDisecorolBedsetupDao.list();
    }

    @Override
    public List<TblDisecorolBedsetup> selectByItemCode(String itemCode) {
        return tblDisecorolBedsetupDao.selectByItemCode(itemCode);
    }

    @Override
    public int insertSelective(TblDisecorolBedsetup tblDisecorolBedsetup) {
        return tblDisecorolBedsetupDao.insert(tblDisecorolBedsetup);
    }

    @Override
    public int updated(TblDisecorolBedsetup tblDisecorolBedsetup) {
        return tblDisecorolBedsetupDao.updated(tblDisecorolBedsetup);
    }

    @Override
    public int deleteByItemCode(String itemCode) {
        return tblDisecorolBedsetupDao.deleteByItemCode(itemCode);
    }
}
